using System;
using System.Collections.Generic;
using System.Linq;
using Volo.Abp.Domain.Entities;

namespace JobToDdd.Domain.JobInfo
{
    public class Requirement : Entity<int>
    {
        public string Educations { get; set; }
        public string Welfares { get; set; }

        public List<string> GetEducations(IEnumerable<Requirement> requirements)
        {
            if (requirements == null)
            {
                throw new Exception("cities不能为空");
            }
            return requirements.Select(m => m.Educations).ToList();
        }

        public List<string> GetWelfares(IEnumerable<Requirement> requirements)
        {
            if (requirements == null)
            {
                throw new Exception("cities不能为空");
            }
            return requirements.Select(m => m.Welfares).ToList();
        }
    }
}